package com.hopu.v1.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hopu.v1.pojo.question.QuestionsOptions;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author: YwaiX
 * @Version: 1.0
 * @Date: Created in 2024-10-01 20:09:01
 * @Description:
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class QuestionVo implements Serializable {
    /**
     * id
     */
    private Integer id;
    
    /**
     * 题库id
     */
    private String questionBanksId;
    
    /**
     * 题目
     */
    private String questionTitle;
    
    /**
     * 答案解析
     */
    private String analysis;
    
    /**
     * 题目类型
     */
    private String questionType;
    
    /**
     * 排序
     */
    private Long sort;
    
    /**
     * 员工id 如果员工创建就给员工id
     */
    private Integer staffId;
    
    /**
     * 学生id 如果学生创建就给学生id
     */
    private Integer studentId;
    
    /**
     * 题目审核状态 0未审批 1审批通过 2审批驳回
     */
    private Integer questionStatus;
    
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    
    /**
     * 选项
     */
    private List<QuestionsOptions> options;
}
